//#include <iostream>
//#include <tchar.h>
#pragma once

#include <windows.h>
#include <stdio.h>
#include <conio.h>

#include "FreeTrackData.h"

// DLL function signatures
// These match those given in FTTypes.pas
// WINAPI is macro for __stdcall defined somewhere in the depths of windows.h
typedef bool (WINAPI *importGetData)(FreeTrackData * data);
typedef char *(WINAPI *importGetDllVersion)(void);
typedef void (WINAPI *importReportID)(int name);
typedef char *(WINAPI *importProvider)(void);

//declare imported function pointers
static importGetData getData;
static importGetDllVersion getDllVersion;
static importReportID reportID;
static importProvider provider;

// create variables for exchanging data with the dll
static FreeTrackData data;
static FreeTrackData *pData;

static char *pDllVersion;
static int name = 453;
static char *pProvider;
static HINSTANCE hinstLib;

int initHeadTrack();
int killHeadTrack();
void updateTracker();

FreeTrackData getHeadTrackData();

